#!usr/bin/env python
# -*- coding: utf-8 -*-

import frida

def on_message(message, data):
    print(message)
    #print(data)
    #print("[on_message] message:", message, "data:", data)
processes = frida.get_remote_device().enumerate_processes()
for process in processes:
    print(process)
front_app = frida.get_remote_device().get_frontmost_application()


print(front_app.pid)

